/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.shengchao.config.sms;

import lombok.RequiredArgsConstructor;
import org.dromara.sms4j.aliyun.config.AlibabaConfig;
import org.dromara.sms4j.core.datainterface.SmsReadConfig;
import org.dromara.sms4j.provider.config.BaseConfig;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 短信配置读取-数据源实现
 *
 * @author luoqiz
 * @author Charles7c
 * @since 2025/03/15 22:15
 */
@Component
@RequiredArgsConstructor
public class SmsReadConfigDatabaseImpl implements SmsReadConfig {


    @Override
    public BaseConfig getSupplierConfig(String configId) {
        return null;
    }

    @Override
    public List<BaseConfig> getSupplierConfigList() {
        BaseConfig baseConfig = new AlibabaConfig();
        baseConfig.setAccessKeyId("LTAIBabaYDfy5oiy");
        baseConfig.setAccessKeySecret("tn987BbDeppXLp7mthEwniFVC9FhQh");
        baseConfig.setSignature("北京云师教育科技有限公司");
        baseConfig.setTemplateId("SMS_135041408");
        return List.of(baseConfig);
    }
}